//1.precode of javascript
window.onload = function(){
 	var preJavascript = document.getElementById("preJavascript");
 	if(preJavascript!=null){
 		var pre = document.getElementsByTagName("pre");
 		if(pre.length>0){
			pre[0].textContent=preJavascript.textContent.replace(/(^\s*)|(\s*$)/g,""); 		
 		}
 	}
 	window.prettyPrint && prettyPrint();
}

/**
 * @author hjl
 * @description "console println";
 * @param title
 * @param content
 * @return
 */
function out(title,content){
	var outStr= "<div class='alert alert-info'>"+
    	"<button type='button' class='close' data-dismiss='alert'>&times;</button>"+
    	"<strong>"+title+":</strong> "+content+"."+
    "</div>";
 	var container = document.getElementsByTagName("div");
 	if(container.length>0){
 		container[0].innerHTML=container[0].innerHTML+outStr;
 	}
}